package com.itheima.test4;

public class Test4Polymorpic {
    public static void main(String[] args) {
        Fu f = new Zi();
        f.show();
        //f.method();

        Zi z = (Zi)f;
        z.method();

    }
}





 class Fu{
    public  void show(){
        System.out.println("Fu...show");
    }
}



class Zi extends Fu{
    public void show() {
        System.out.println("Zi...show");
    }
    public void method(){
        System.out.println("Zi...method");
    }
}
